package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/7/18 0018
 **/
@Data
@ApiModel("账号信息实体")
public class AccountInfoVo {
    @NotBlank(message = "账号名称不能为空")
    @Length(max = 100, message = "账号名称字符长度限制在100个以内")
    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @Length(max = 100, message = "账号名称字符长度限制在100个以内")
    @ApiModelProperty(value = "昵称")
    private String nickname;

    @Length(max = 300, message = "头像字符长度限制在300个以内")
    @ApiModelProperty(value = "头像")
    private String avatar;
}
